package com.dstz.sys.service;

import com.dstz.base.core.util.BeanCopierUtils;
import com.dstz.org.api.model.dto.UserDTO;
import com.dstz.sys.model.Communicate;
import com.dstz.sys.model.Notice;
import com.dstz.sys.model.Warn;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * 对接接口
 */
@Service(value = "indexMsgService")
public class IndexMsgServiceImpl  implements  IndexMsgService {

    @Override
    public List<Warn> getWarnMsg() {
        List<Warn> listo=new ArrayList<Warn>();


        Warn nt=new Warn();
        nt.setTitle("111");
        nt.setContent("1111");
        nt.setCreatetime("1111");


        Warn nt2=new Warn();
        nt2.setTitle("2222");
        nt2.setContent("2222");
        nt2.setCreatetime("2222");

        Warn nt3=new Warn();
        nt3.setTitle("3333");
        nt3.setContent("3333");
        nt3.setCreatetime("3333");



        listo.add(nt);
        listo.add(nt2);
        listo.add(nt3);
        return listo;
    }

    @Override
    public List<Communicate> getCommunicateMsg() {
        List<Communicate> listo=new ArrayList<Communicate>();


        Communicate nt=new Communicate();
        nt.setTitle("111");
        nt.setContent("1111");
        nt.setCreatetime("1111");


        Communicate nt2=new Communicate();
        nt2.setTitle("2222");
        nt2.setContent("2222");
        nt2.setCreatetime("2222");

        Communicate nt3=new Communicate();
        nt3.setTitle("3333");
        nt3.setContent("3333");
        nt3.setCreatetime("3333");

        listo.add(nt);
        listo.add(nt2);
        listo.add(nt3);
        return listo;
    }

    @Override
    public List<Notice>  getNoticeMsg() {
        List<Notice> listo=new ArrayList<Notice>();
        Notice nt=new Notice();
        nt.setTitle("111");
        nt.setContent("1111");
        nt.setCreatetime("1111");
        Notice nt2=new Notice();
        nt2.setTitle("2222");
        nt2.setContent("2222");
        nt2.setCreatetime("2222");

        Notice nt3=new Notice();
        nt3.setTitle("3333");
        nt3.setContent("3333");
        nt3.setCreatetime("3333");

        listo.add(nt);
        listo.add(nt2);
        listo.add(nt3);
        return listo;
    }
}
